package com.fhd.service.Bill;

import com.fhd.pojo.Bill;

import java.sql.Date;
import java.sql.SQLException;
import java.util.ArrayList;

public interface BillService {
    // 客户下单业务
    public int clientPlaceOrder(int clientId, int merchantId, int houseId, int money, int number, Date startTime,Date endTime) throws SQLException;

    // 取消订单业务
    public int cancelBill(int id,int clientId,int merchantId,int houseId,int money,int number,int situation) throws SQLException;

    // 获取某个客户的所有订单
    public ArrayList<Bill> getClientBill(int clientId);

    // 获取某个商户的所有订单
    public ArrayList<Bill> getMerchantBill(int merchantId);

    // 更改订单状态
    public int updateBillSituation(int id,int situation);

}
